package com.explorati.design_pattern.behavior.state;

public class SpeedState extends CourseVideoState {

	// 状态的行为逻辑处理
	@Override
	public void play() {
		// 在内部切换到另一状态
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.PLAY_STATE);
	}

	@Override
	public void speed() {
		// 在内部切换到另一状态
		System.out.println("快进播放课程视频状态");
	}

	@Override
	public void pause() {
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.PAUSE_STATE);
	}

	@Override
	public void stop() {
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.STOP_STATE);
	}

}
